// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '产品列表',
        name: 'Product',
        url: "/Product/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductName":"","BarCode":"","ExampleBarcode":""};
    const editFormOptions = [[{"title":"产品名称","required":true,"field":"ProductName"},
                               {"title":"产品条码","required":true,"field":"BarCode"}],
                              [{"title":"示例条码","required":true,"field":"ExampleBarcode"}]];
    const searchFormFields = {"ProductName":"","BarCode":"","ExampleBarcode":""};
    const searchFormOptions = [[{"title":"产品名称","field":"ProductName","type":"like"},{"title":"产品条码","field":"BarCode","type":"like"}],[{"title":"示例条码","field":"ExampleBarcode","type":"like"}]];
    const columns = [{field:'Id',title:'产品ID',type:'long',sort:true,width:20,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductName',title:'产品名称',type:'string',width:180,require:true,align:'left'},
                       {field:'BarCode',title:'产品条码',type:'string',width:130,require:true,align:'left'},
                       {field:'ExampleBarcode',title:'示例条码',type:'string',width:200,require:true,align:'left'},
                       {field:'ImgNum',title:'产品图片数',type:'int',width:110,align:'center'},
                       {field:'TaskNum',title:'任务数',type:'int',width:110,align:'center'},
                       {field:'Status',title:'产品状态',type:'int',width:110,require:true,align:'center'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'Creater',title:'创建者',type:'string',width:110,hidden:true,align:'left'},
                       {field:'UpdateUser',title:'修改人',type:'string',width:110,align:'center'},
                       {field:'UpdateTime',title:'修改时间',type:'datetime',sort:true,width:150,align:'center'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}